package com.chinaunicom.smartcity.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 公共跳转控制器
 *
 * @author liukai
 */
@Controller
public class IndexController {

    @RequestMapping(value = "/", method = RequestMethod.GET)
    public String login() {
        return "home";
    }


    @GetMapping("/index")
    public String index() {
        return "index";
    }

    @RequestMapping(value = "/top-head.html", method = RequestMethod.GET)
    public String topHead() {
        return "top-head";
    }


    @RequestMapping(value = "/layout.html", method = RequestMethod.GET)
    public String layout() {
        return "layout";
    }

}
